import {
    defineConfig,
    presetUno,
    presetIcons,
    presetAttributify,
    presetTypography,
    presetWebFonts,
    transformerDirectives,
    transformerVariantGroup
} from "unocss"
import presetEase from "unocss-preset-ease"
// import unoTheme from "./src/assets/unocss/uno-theme.json"

export default defineConfig({
    // theme: {
    //     ...unoTheme
    // },
    presets: [
        presetUno(),
        presetAttributify(),
        presetTypography(),
        presetEase(),
        presetIcons({
            scale: 1.2,
            warn: true
        }),
        presetWebFonts({
            fonts: {
                sans: "DM Sans",
                serif: "DM Serif Display",
                mono: "DM Mono"
            }
        })
    ],
    shortcuts: [
        ["flex-center", "flex items-center justify-center"],
        ["flex-between", "flex items-center justify-between"],
        ["flex-end", "flex items-end justify-between"]
    ],
    transformers: [transformerDirectives(), transformerVariantGroup()]
})
